package me.yushuai.wukong.base.service.impl;

import me.yushuai.wukong.base.dto.SearchActionLogDTO;
import me.yushuai.wukong.base.entity.ActionLogInfo;
import me.yushuai.wukong.base.repository.ActionLogRepository;
import me.yushuai.wukong.base.service.ActionLogService;
import me.yushuai.wukong.common.dto.PageDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

/**
 * 操作日志
 *
 * @author zhoushuai@189.cn
 * @since 2023-09-19
 */
@Service
public class ActionLogServiceImpl implements ActionLogService {

    @Autowired
    private ActionLogRepository actionLogRepository;

    @Override
    public PageDTO<ActionLogInfo> page(SearchActionLogDTO dto) {
        return PageDTO.of(null, null);
    }

    @Override
    public Optional<ActionLogInfo> findById(Long id) {
        return this.actionLogRepository.findById(id);
    }

    @Override
    public void save(ActionLogInfo actionLogInfo) {
        this.actionLogRepository.save(actionLogInfo);
    }


}
